//
//  QDCommonUI.h
//  qmuidemo
//
//  Created by QMUI Team on 16/8/8.
//  Copyright © 2016年 QMUI Team. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - Colors

#define UIColorGray1 UIColorMake(53, 60, 70)
#define UIColorGray2 UIColorMake(73, 80, 90)
#define UIColorGray3 UIColorMake(93, 100, 110)
#define UIColorGray4 UIColorMake(113, 120, 130)
#define UIColorGray5 UIColorMake(133, 140, 150)
#define UIColorGray6 UIColorMake(153, 160, 170)
#define UIColorGray7 UIColorMake(173, 180, 190)
#define UIColorGray8 UIColorMake(196, 200, 208)
#define UIColorGray9 UIColorMake(216, 220, 228)
#define UIColorText1 UIColorMake(57, 64, 77)
#define UIColorText2 UIColorMake(136, 136, 136)
#define UIColorText3 UIColorMake(185, 183, 187)
#define UIColorText4 UIColorMake(242, 245, 250) // 浅灰色
#define UIColorText5 UIColorMake(153, 153, 153) // themePlaceholderColor

#define UIColorDarkGray1 UIColorMake(218, 220, 224)
#define UIColorDarkGray2 UIColorMake(198, 200, 204)
#define UIColorDarkGray3 UIColorMake(178, 180, 184)
#define UIColorDarkGray4 UIColorMake(158, 160, 164)
#define UIColorDarkGray5 UIColorMake(138, 140, 144)
#define UIColorDarkGray6 UIColorMake(118, 120, 124)
#define UIColorDarkGray7 UIColorMake(98, 100, 104)
#define UIColorDarkGray8 UIColorMake(78, 80, 84)
#define UIColorDarkGray9 UIColorMake(58, 60, 64)

#define UIColorDarkBlack1 UIColorMake(17, 17, 17) //#111111
#define UIColorDarkBlack2 UIColorMake(28, 28, 30) //#1C1C1E
#define UIColorDarkBlack3 UIColorMake(56, 57, 58) //#38393A
#define UIColorDarkBlack4 UIColorMake(58, 60, 64)

#define UIColorDarkLine1 UIColorMake(56, 57, 58) //#38393A
#define UIColorDarkLine2 UIColorMake(85, 86, 87) //#555657
#define UIColorDarkLine3 UIColorMake(255, 255, 255) //#FFFFFF
#define UIColorTitleColor1 UIColorMake(38, 38, 38) //#FFFFFF

#define UIColorShadow UIColorMakeWithRGBA(0, 0, 0, 0.2)

#define UIColorTheme1 UIColorMake(239, 83, 98) // Grapefruit
#define UIColorTheme2 UIColorMake(254, 109, 75) // Bittersweet
#define UIColorTheme3 UIColorMake(255, 207, 71) // Sunflower
#define UIColorTheme4 UIColorMake(159, 214, 97) // Grass
#define UIColorTheme5 UIColorMake(63, 208, 173) // Mint
#define UIColorTheme6 UIColorMake(6, 92, 208) // Klein
#define UIColorTheme7 UIColorMake(90, 154, 239) // Blue Jeans
#define UIColorTheme8 UIColorMake(172, 143, 239) // Lavender
#define UIColorTheme9 UIColorMake(238, 133, 193) // Pink Rose
#define UIColorTheme10 UIColorMake(39, 192, 243) // Dark

#define UIColorBRTheme1 UIColorMake(0, 185, 255) //主色调蓝色 1、3、7
#define UIColorBRTheme3 UIColorMake(0, 185, 255) //主色调蓝色 1、3、7
#define UIColorBRTheme7 UIColorMake(0, 185, 255) //主色调蓝色 1、3、7
#define UIColorBRTheme2 UIColorMake(238, 135, 113) //橙红 2、5
#define UIColorBRTheme5 UIColorMake(238, 135, 113) //橙红 2、5
#define UIColorBRTheme4 UIColorMake(35, 100, 225) //深蓝  4、12
#define UIColorBRTheme12 UIColorMake(35, 100, 225) //深蓝  4、12
#define UIColorBRTheme6 UIColorMake(0, 217, 89) //绿色 6、10
#define UIColorBRTheme10 UIColorMake(0, 217, 89) //绿色 6、10
#define UIColorBRTheme8 UIColorMake(235, 35, 0) //红色
#define UIColorBRTheme9 UIColorMake(253, 88, 73) //浅红色
#define UIColorBRTheme11 UIColorMake(28, 28, 30) //黑色
#define UIColorBRTheme13 UIColorMake(60, 144, 255) //浅蓝色
#define UIColorBRTheme14 UIColorMake(255, 104, 31) //橙色
#define UIColorBRTheme15 UIColorMake(25, 188, 156) //草绿色
#define UIColorBRTheme16 UIColorMake(62, 223, 130) //浅绿
#define UIColorBRTheme17 UIColorMake(0, 185, 255) //浅绿

#define UIColorBRTheme18 UIColorMake(0, 185, 255) //蓝色
#define UIColorBRTheme19 UIColorMake(255, 185, 0) //橙色
#define UIColorBRTheme20 UIColorMake(31, 228, 146) //绿色
#define UIColorBRTheme21 UIColorMake(153, 153, 153) //灰色
#define UIColorBRTheme22 UIColorMake(255, 85, 0) //橙红
#define UIColorBRTheme23 UIColorMake(0, 0, 0) //黑色


extern NSString *const QDSelectedThemeIdentifier;
// bod配色
extern NSString *const QDThemeIdentifierDefault;
extern NSString *const QDThemeIdentifierGrapefruit;
// 香蕉配色
extern NSString *const QDThemeIdentifierGrass;
extern NSString *const QDThemeIdentifierPinkRose;
// brs配色
extern NSString *const QDThemeIdentifierDark;
// 倍思特配色
extern NSString *const QDThemeIdentifierBST;
// 坦桑尼亚配色
extern NSString *const QDThemeIdentifierTanzania;
// 紫配色
extern NSString *const QDThemeIdentifierIBoom;

#define CodeFontMake(_pointSize) [UIFont fontWithName:@"Menlo" size:_pointSize]
#define CodeAttributes(_fontSize) @{NSFontAttributeName: CodeFontMake(_fontSize), NSForegroundColorAttributeName: QDThemeManager.currentTheme.themeCodeColor}

#define IsUITest NSProcessInfo.processInfo.environment[@"isUITest"].boolValue
/// 上下边距
#define kMarginTopBottom (12.0)
/// 一级页面外边距
#define kMarginLR (16.0)
/// 二级页面外边距
#define kMarginLR2 (28.0)
/// 一般圆角
#define kCorners (13.0)

/// QMUIButton 系列 Demo 里的一行高度
extern const CGFloat QDButtonSpacingHeight;

@interface QDCommonUI : NSObject

+ (void)renderGlobalAppearances;
@end

@interface QDCommonUI (ThemeColor)

+ (UIColor *)randomThemeColor;
@end

@interface QDCommonUI (Layer)

+ (CALayer *)generateSeparatorLayer;
@end
